projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc0c521
)
GtkPlacesSidebar: avoid a crash
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 19 Dec 2013 13:16:30 +0000
(08:16 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 19 Dec 2013 16:01:39 +0000
(11:01 -0500)
Be more careful when comparing uris during DND - they may
be NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=720264
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index 675a756d9e656c5f9ef126d91fdcefe204bfdb90..979700fb9812b2d3d325a100332eb988d0c875fb 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-1415,7
+1415,7
@@
compute_drop_position (GtkTreeView *tree_view,
PLACES_SIDEBAR_COLUMN_URI, &uri,
-1);
- if (
strcmp
(uri, "recent:///") == 0)
+ if (
g_strcmp0
(uri, "recent:///") == 0)
drop_possible = FALSE;
g_free (uri);